package springbootdemo.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
import springbootdemo.service.DemoService;

@Service(value = "demoService")
public class DemoServiceImpl implements DemoService {

    @Resource
    private JdbcTemplate jdbcTemplate;
    @Override
    public List getList() {
        String sql = "SELECT * FROM `t_collector_config` WHERE id=1;";
        List list = jdbcTemplate.queryForList(sql);
        System.out.println(list);
        return list;
    }
}
